package org.hghog.jlinkdemo.process;

/**
 * @author : HGhog
 * @date : 2024-08-30 2:00
 * @version: 1.0
 */
class FileBean {

    private String name;
    private String path;
    private String outPath;
    private String begin;
    private long end;
    private long time;
    private boolean error;
    private String errorMessage;
    private boolean split;
    private byte splitSum;

    public FileBean() {
    }

    public FileBean(String name, String path) {
        this.name = name;
        this.path = path;
    }

    public FileBean(String name, String path, long time) {
        this.name = name;
        this.path = path;
        this.time = time;
    }

    public FileBean(String name, String path, boolean error, String errorMessage) {
        this.name = name;
        this.path = path;
        this.error = error;
        this.errorMessage = errorMessage;
    }

    public FileBean(boolean error, String errorMessage) {
        this.error = error;
        this.errorMessage = errorMessage;
    }

    public FileBean(String name, String path, long time, String begin, long end) {
        this.name = name;
        this.path = path;
        this.time = time;
        this.begin = begin;
        this.end = end;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public String getBegin() {
        return begin;
    }

    public void setBegin(String begin) {
        this.begin = begin;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getOutPath() {
        return outPath;
    }

    public void setOutPath(String outPath) {
        this.outPath = outPath;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public boolean isSplit() {
        return split;
    }

    public void setSplit(boolean split) {
        this.split = split;
    }

    public byte getSplitSum() {
        return splitSum;
    }

    public void setSplitSum(byte splitSum) {
        this.splitSum = splitSum;
    }

    @Override
    public String toString() {
        return "FileBean{" +
                "name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", outPath='" + outPath + '\'' +
                ", begin='" + begin + '\'' +
                ", end=" + end +
                ", time=" + time +
                ", error=" + error +
                ", errorMessage='" + errorMessage + '\'' +
                ", split=" + split +
                ", splitSum=" + splitSum +
                '}';
    }
}
